<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分销-{$webname}</title>
</head>
<body>

{request 'pc/pub/header'}
<!-- 公用头部结束 -->

<div class="admin-side">
    <div class="side-menu-block">
        <h3 class="side-menu-title">CMS分销平台</h3>
        <ul class="side-menu-group">
            <?php if($is_pro){?>
            <?php $default_url = '/plugins/supplier/index/cms_list'?>
            <li><a href="<?php echo $default_url?>" class="item active" target="frm">分销产品</a></li>
            <?php } ?>
            {if St_Functions::is_normal_app_install('supplier_shop')}
            <li><a href="/supplier/shop/config" class="item" target="frm">店铺信息</a></li>
            {/if}
            <?php if($check_product1){ ?>
            <li><a href="/plugins/supplier/index/check_list" class="item" target="frm">验单管理</a></li>
            <?php } ?>
            <?php if($finance_manage){ ?>
            <li><a href="/plugins/supplier/index/brokerage_list" class="item" target="frm">财务信息</a></li>
            <?php } ?>
        </ul>
    </div>
</div>

<!-- 侧边栏导航 -->

<div class="admin-main">
    <div id="tab_product_block" class="block-tab-container">
        <iframe src="<?php echo $default_url?>" name="frm" style="border: 0;width: 100%;overflow: auto;">
        </iframe>
    </div>
</div>


<script>

    $(function(){

        //给列表容器赋予一个动态高度
        function sizeHeight(){
            var pmHeight = $(window).height();
            var contentHeight=pmHeight-110;
            // $(".side-menu,.panel").height(contentHeight);
            $(".admin-main iframe").height(contentHeight);
        }

        //高度改变
        $(window).resize(function(){
            sizeHeight()
        })
        sizeHeight();

        //左侧导航样式控制
        $('.side-menu-group').find(".item").on('click',function () {
            var item = $(this);
            $('.side-menu-group').find(".item").removeClass('active');
            item.addClass('active');
        })


    })

</script>

</body>
</html>